<?php namespace Framework\Model;

use Framework\Model\Db;

class Model
{
	protected $table;

	private $db;

	public function __construct()
	{
		$this->db = new Db($this->table);
	}

	public function __call($method,$params)
	{
		return call_user_func_array([$this->db,$method], $params);
	}
}